<template>
  <j-modal
    :title="title"
    :width="1200"
    :visible="visible"
    :maskClosable="false"
    switchFullscreen
    @ok="handleOk"
    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
    @cancel="handleCancel">
    <chg-deratefee-form ref="deratefeeFromChild" @handleDeratefee="handleDeratefee">   </chg-deratefee-form>
  </j-modal>
</template>

<script>
  import ChgDeratefeeForm from './ChgDeratefeeForm'
  export default {
    name: 'ChgDeratefeeModal',
    description: '费用减免弹框',      
    components: {
      ChgDeratefeeForm
    },
    data() {
      return {
        title:'',
        visible: false,
        disableSubmit: false
      }
    },
    methods:{
      add () {
        this.visible=true
        // this.$nextTick(()=>{
        //   this.$refs.payfeeChild.add();
        // })
      },    
      close () {
        this.$emit('close');
        this.visible = false;
      },
      handleOk () {
        this.$refs.deratefeeFromChild.handleOk();
      },
      handleDeratefee(){
        this.$emit('handleDeratefee');   
      },

      getBillParam(){
        return this.$refs.deratefeeFromChild.getBillParam();
      },

      submitCallback(){
        this.$emit('ok');
        this.visible = false;
      },
      handleCancel () {
        this.close()
      }
    }
  }
</script>

<style scoped>
</style>